<!DOCTYPE html><html><head><title>CPS</title><meta charset='utf-8'><link href='https://dn-maxiang.qbox.me/res-min/themes/marxico.css' rel='stylesheet'><style></style></head><body><div id='preview-contents' class='note-content'>
                        
                    



<h2 id="cps">CPS</h2>

<blockquote>
  <p>共 <code>searchCPS</code>  <code>updatePlatformCPS</code> 两个接口。字段意义参考平台/渠道。两个接口返回的数据格式是一样的</p>
</blockquote>

<h3 id="searchcps"><code>searchCPS</code></h3>

<p><strong>接口说明</strong> </p>

<pre class="prettyprint hljs-dark"><code class="hljs">根据请求条件，查询并返回结果<br></code></pre>

<p><strong>URL</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs crystal"><span class="hljs-symbol">http:</span>/<span class="hljs-regexp">/115.159.207.95:9080/bi</span><span class="hljs-regexp">/gameReport/search</span>CPS.<span class="hljs-keyword">do</span><br></code></pre>

<p><strong>请求参数</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs 1c"><span class="hljs-number">1</span>. dstart : <span class="hljs-string">"2017-06-01"</span>       <span class="hljs-meta"># 开始时间 </span><br><span class="hljs-number">2</span>. dend : <span class="hljs-string">"2017-06-07"</span>         <span class="hljs-meta"># 结束时间</span><br><span class="hljs-number">3</span>. callback : <span class="hljs-string">""</span><br></code></pre>

<p><strong>返回参数</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs dts">{<br><span class="hljs-symbol">    res:</span> <span class="hljs-string">"0"</span>,<br><span class="hljs-symbol">    cpsDataList:</span> [    <span class="hljs-meta"># 渠道汇总数据</span><br>        {<br><span class="hljs-symbol">            activeARPU:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            activeDevice:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            activePayRadio:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            activeUserCount:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            activeUserCountByDay:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            allData:</span> false,<br><span class="hljs-symbol">            avgOnlineTime:</span> <span class="hljs-number">99</span>,<br><span class="hljs-symbol">            channelId:</span> <span class="hljs-string">"3"</span>,<br><span class="hljs-symbol">            channelName:</span> <span class="hljs-string">"3"</span>,<br><span class="hljs-symbol">            comparatorChannelName:</span> { },<br><span class="hljs-symbol">            comparatorDate:</span> { },<br><span class="hljs-symbol">            comparatorPlatformId:</span> { },<br><span class="hljs-symbol">            comparatorPlatformName:</span> { },<br><span class="hljs-symbol">            comparatorServer:</span> { },<br><span class="hljs-symbol">            comparatorServerName:</span> { },<br><span class="hljs-symbol">            distinctNewUser:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            firstPayUserCount:</span> <span class="hljs-number">128</span>,<br><span class="hljs-symbol">            loginNewUservalidatedRadio:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            loginRadio:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            loginRadio2:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            loginRadioAliveUserCount:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            newDevice:</span> <span class="hljs-number">3005</span>,<br><span class="hljs-symbol">            newPayUserARPU:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            newPayUserCount:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            newUser:</span> <span class="hljs-number">3029</span>,<br><span class="hljs-symbol">            newUserPayCount:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            newUserPayRatio:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            payARPU:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            payCount:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            payUserCount:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            payUserCountByDay:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            platformId:</span> <span class="hljs-string">"0"</span>,<br><span class="hljs-symbol">            serverTypeName:</span> <span class="hljs-string">""</span>,<br><span class="hljs-symbol">            sumplaytime:</span> <span class="hljs-number">14307630</span>,<br><span class="hljs-symbol">            the14LTV:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            the14Left:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            the14LeftLoginusernum:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            the14LeftUsercreatenum:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            the14PayUser:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            the14ltvNewUser:</span> <span class="hljs-number">3029</span>,<br><span class="hljs-symbol">            the1LoginUserNumOfSecondWeek:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            the2Left:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            the2LeftLoginusernum:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            the2LeftUsercreatenum:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            the30LTV:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            the30Left:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            the30LeftLoginusernum:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            the30LeftUsercreatenum:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            the30PayUser:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            the30ltvNewUser:</span> <span class="hljs-number">3029</span>,<br><span class="hljs-symbol">            the3Left:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            the3LeftLoginusernum:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            the3LeftUsercreatenum:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            the3LoginUserNumOfFirstWeek:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            the7LTV:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            the7Left:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            the7LeftLoginusernum:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            the7LeftUsercreatenum:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            the7PayUser:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            the7ltvNewUser:</span> <span class="hljs-number">3029</span>,<br><span class="hljs-symbol">            togglerDatas:</span> [<br>                {<br>                    $ref: <span class="hljs-string">"$.detailChannelDisplayDataList[0]"</span><br>                },<br>                {<br>                    $ref: <span class="hljs-string">"$.detailChannelDisplayDataList[1]"</span><br>                }<br>            ],<br><span class="hljs-symbol">            useridnum:</span> <span class="hljs-number">2851</span>,<br><span class="hljs-symbol">            validatedNewUser:</span> <span class="hljs-number">0</span><br>        }<br>    ]<br>}<br></code></pre>

<hr>

<h3 id="updateplatformcps"><code>updatePlatformCPS</code></h3>

<p><strong>接口说明</strong> </p>

<pre class="prettyprint hljs-dark"><code class="hljs">在平台渠道详细数据图表中选择某活跃类型时触发的操作。根据选中的平台类型查询并返回新的图表数据，以供前端更新<br></code></pre>

<p><strong>URL</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs crystal"><span class="hljs-symbol">http:</span>/<span class="hljs-regexp">/115.159.207.95:9080/bi</span><span class="hljs-regexp">/gameReport/update</span>PlatformCPS.<span class="hljs-keyword">do</span><br></code></pre>

<p><strong>请求参数</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs groovy"><span class="hljs-number">1.</span>  platform： <span class="hljs-string">"0"</span>  可选平台类型：  <span class="hljs-string">"平台类型"</span>  = <span class="hljs-string">"0"</span>,  <span class="hljs-string">"IOS"</span> = <span class="hljs-string">"2"</span>,  <span class="hljs-string">"安卓"</span> = <span class="hljs-string">"3"</span><br><span class="hljs-number">2.</span>  <span class="hljs-string">callback :</span> <span class="hljs-string">""</span><br></code></pre>

<p><strong>返回参数</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs dts">{<br><span class="hljs-symbol">    res:</span> <span class="hljs-string">"0"</span>,<br><span class="hljs-symbol">    cpsDataList:</span> [    <span class="hljs-meta"># 平台详细数据</span><br>        {<br><span class="hljs-symbol">            activeARPU:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            activeDevice:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            activePayRadio:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            activeUserCount:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            activeUserCountByDay:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            allData:</span> false,<br><span class="hljs-symbol">            avgOnlineTime:</span> <span class="hljs-number">99</span>,<br><span class="hljs-symbol">            channelId:</span> <span class="hljs-string">"3"</span>,<br><span class="hljs-symbol">            channelName:</span> <span class="hljs-string">"3"</span>,<br><span class="hljs-symbol">            comparatorChannelName:</span> { },<br><span class="hljs-symbol">            comparatorDate:</span> { },<br><span class="hljs-symbol">            comparatorPlatformId:</span> { },<br><span class="hljs-symbol">            comparatorPlatformName:</span> { },<br><span class="hljs-symbol">            comparatorServer:</span> { },<br><span class="hljs-symbol">            comparatorServerName:</span> { },<br><span class="hljs-symbol">            distinctNewUser:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            firstPayUserCount:</span> <span class="hljs-number">128</span>,<br><span class="hljs-symbol">            loginNewUservalidatedRadio:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            loginRadio:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            loginRadio2:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            loginRadioAliveUserCount:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            newDevice:</span> <span class="hljs-number">3005</span>,<br><span class="hljs-symbol">            newPayUserARPU:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            newPayUserCount:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            newUser:</span> <span class="hljs-number">3029</span>,<br><span class="hljs-symbol">            newUserPayCount:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            newUserPayRatio:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            payARPU:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            payCount:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            payUserCount:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            payUserCountByDay:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            platformId:</span> <span class="hljs-string">"0"</span>,<br><span class="hljs-symbol">            serverTypeName:</span> <span class="hljs-string">""</span>,<br><span class="hljs-symbol">            sumplaytime:</span> <span class="hljs-number">14307630</span>,<br><span class="hljs-symbol">            the14LTV:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            the14Left:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            the14LeftLoginusernum:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            the14LeftUsercreatenum:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            the14PayUser:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            the14ltvNewUser:</span> <span class="hljs-number">3029</span>,<br><span class="hljs-symbol">            the1LoginUserNumOfSecondWeek:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            the2Left:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            the2LeftLoginusernum:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            the2LeftUsercreatenum:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            the30LTV:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            the30Left:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            the30LeftLoginusernum:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            the30LeftUsercreatenum:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            the30PayUser:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            the30ltvNewUser:</span> <span class="hljs-number">3029</span>,<br><span class="hljs-symbol">            the3Left:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            the3LeftLoginusernum:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            the3LeftUsercreatenum:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            the3LoginUserNumOfFirstWeek:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            the7LTV:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            the7Left:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            the7LeftLoginusernum:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            the7LeftUsercreatenum:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            the7PayUser:</span> <span class="hljs-number">0</span>,<br><span class="hljs-symbol">            the7ltvNewUser:</span> <span class="hljs-number">3029</span>,<br><span class="hljs-symbol">            togglerDatas:</span> [<br>                {<br>                    $ref: <span class="hljs-string">"$.detailChannelDisplayDataList[0]"</span><br>                },<br>                {<br>                    $ref: <span class="hljs-string">"$.detailChannelDisplayDataList[1]"</span><br>                }<br>            ],<br><span class="hljs-symbol">            useridnum:</span> <span class="hljs-number">2851</span>,<br><span class="hljs-symbol">            validatedNewUser:</span> <span class="hljs-number">0</span><br>        }<br>    ]<br>}<br></code></pre></div></body></html>